home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / Macintosh Tracker 1.20 / source / Tracker Client Folder / CSpecificStereoOn.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-22  |  856 b   |  38 lines  |  [TEXT/KAHL]

  1. /* CSpecificStereoOn.c */
  2.  
  3. #include "CSpecificStereoOn.h"
  4. #include "CMyDocument.h"
  5. #include "LocationConstants.h"
  6. #include "CWindow.h"
  7. #include "CArray.h"
  8.  
  9.  
  10. void                CSpecificStereoOn::ISpecificStereoOn(CMyDocument* TheDocument,
  11.                             CWindow* TheWindow)
  12.     {
  13.         LongPoint            LocalStart,LocalExtent;
  14.  
  15.         Document = TheDocument;
  16.         GetRect(SpecificStereoID,&LocalStart,&LocalExtent);
  17.         ICheckbox(LocalStart,LocalExtent,GetCString(SpecificStereoID),
  18.             0,0,applFont,9,TheWindow,TheWindow);
  19.     }
  20.  
  21.  
  22. MyBoolean        CSpecificStereoOn::DoThang(void)
  23.     {
  24.         MyBoolean            Result;
  25.         SongRec                Song;
  26.  
  27.         if (Document->Selection != -1)
  28.             {
  29.                 Result = inherited::DoThang();
  30.                 Document->ListOfSongs->GetElement(Document->Selection,&Song);
  31.                 if (Song.StereoOnOverrideDefault && (Song.StereoOn != State))
  32.                     {
  33.                         Document->SetStereoOn(State);
  34.                     }
  35.             }
  36.         return Result;
  37.     }
  38.